<h1>{{ post.title|title }} </h1>
{% autoescape off %}
{{ content }}
{% endautoescape %}
<p>
    Published on: {{ post.pub_date }}
</p>
<p>
    <a href="/admin/blog/post/{{ post.id }}/change">Edit this post</a>
</p>
<div id="comments">
    <h2>Comments</h2>
{% for comment in comments %}
    <div class="comment">
        <p>
            {% if comment.website %}
            <strong><a href="{{ comment.website }}" target="_blank">
            {{ comment.author }}
            </a></strong>
            {% else %}
            <strong>{{ comment.author }}</strong> 
            {% endif %}
            - {{ comment.pub_date }}:
        </p>
        {{ comment.content }}
    </div>
{% empty %}
    <p>
        There are no comments in this post yet.
    </p>
{% endfor %}
</div>
<p>
    Click <a href="{% url 'index' %}">here</a> to go back
</p>
